package pri.hillchen.springboot.shiro.service;


import pri.hillchen.springboot.shiro.common.service.BaseService;
import pri.hillchen.springboot.shiro.entity.User;

import java.util.Set;

/**
 * Created by hillchen on 2017/9/28 0028.
 */
public interface UserService  extends BaseService<User> {
    User findUserByUserName(String userName);
    User findUserById(String id);
    User findUserByUserNamePassword(String userName, String passwrod);

    void registUser(User user);

    void assignRoles(String userName,Set<Integer> roleIds);
}
